//
//  BoxCostHeadView.m
//  XLDoctor
//
//  Created by longma on 2018/10/8.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import "MJTitleButtonView.h"

@implementation MJTitleButtonView

- (void)setItemType:(NSInteger)itemType {
    if(itemType == 0){
        self.titleLabel.mj_localizable = @"Cancel_qx";
        self.titleLabel.textColor = UIColor.mj_lightGrayColor;
    }else if(itemType == 1){
        self.titleLabel.mj_localizable = @"OK_gk";
        self.titleLabel.textColor = UIColor.mj_appColor;
    }
}

- (void)awakeFromNib{
    [super  awakeFromNib];
    
    self.titleLabel.lineBreakMode = NSLineBreakByWordWrapping; // 设置按单词换行

}

- (void)updateTitleSpace {
    self.titleLabelLeft.constant = 0;
    self.titleLabelRight.constant = 0;
}

@end
